package com.wpml.member.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wpml.common.util.PageUtils;
import com.wpml.common.util.Query;
import com.wpml.member.entity.MemberLevelModel;
import com.wpml.member.dao.MemberLevelDao;
import com.wpml.member.service.MemberLevelService;
import org.springframework.stereotype.Service;
import lombok.extern.slf4j.Slf4j;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 会员等级(UmsMemberLevel)表服务实现类
 *
 * @author makejava
 * @since 2020-04-07 12:29:14
 */
@Service
@Slf4j
public class MemberLevelServiceImpl extends ServiceImpl<MemberLevelDao, MemberLevelModel> implements MemberLevelService {
    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MemberLevelModel> page = this.page(
                new Query<MemberLevelModel>().getPage(params),
                new QueryWrapper<MemberLevelModel>()
        );

        return new PageUtils(page);
    }
}
